
package ClientBL;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for EventArrayResult complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="EventArrayResult">
 *   &lt;complexContent>
 *     &lt;extension base="{http://results.monopoly/xsd}MonopolyResult">
 *       &lt;sequence>
 *         &lt;element name="lastEvent" type="{http://GameEvents/xsd}Event" minOccurs="0"/>
 *         &lt;element name="results" type="{http://GameEvents/xsd}Event" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="size" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EventArrayResult", namespace = "http://results.monopoly/xsd", propOrder = {
    "lastEvent",
    "results",
    "size"
})
public class EventArrayResult
    extends MonopolyResult
{

    @XmlElementRef(name = "lastEvent", namespace = "http://results.monopoly/xsd", type = JAXBElement.class, required = false)
    protected JAXBElement<Event> lastEvent;
    @XmlElement(nillable = true)
    protected List<Event> results;
    @XmlElementRef(name = "size", namespace = "http://results.monopoly/xsd", type = JAXBElement.class, required = false)
    protected JAXBElement<Integer> size;

    /**
     * Gets the value of the lastEvent property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link Event }{@code >}
     *     
     */
    public JAXBElement<Event> getLastEvent() {
        return lastEvent;
    }

    /**
     * Sets the value of the lastEvent property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link Event }{@code >}
     *     
     */
    public void setLastEvent(JAXBElement<Event> value) {
        this.lastEvent = ((JAXBElement<Event> ) value);
    }

    /**
     * Gets the value of the results property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the results property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getResults().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Event }
     * 
     * 
     */
    public List<Event> getResults() {
        if (results == null) {
            results = new ArrayList<Event>();
        }
        return this.results;
    }

    /**
     * Gets the value of the size property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link Integer }{@code >}
     *     
     */
    public JAXBElement<Integer> getSize() {
        return size;
    }

    /**
     * Sets the value of the size property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link Integer }{@code >}
     *     
     */
    public void setSize(JAXBElement<Integer> value) {
        this.size = ((JAXBElement<Integer> ) value);
    }

}
